package utils;

/**
 * 单向链表数据结构
 * @date 2020/2/27 23:30
 */
public class ListNode implements Cloneable{
    public ListNode next;
    public int val;
    public ListNode(int val) {
        this.val = val;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        ListNode listNode = new ListNode(1);
        Object clone = listNode.clone();
    }
}
